package io.hilo.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

/**
 * Created by zollty on 2017/5/21.
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, XADataSourceAutoConfiguration.class })
@ComponentScan({AppStarter.APP_PACKAGE})
@EnableDubbo(scanBasePackages = AppStarter.APP_PACKAGE)
public class AppStarter {
    /** app main package */
    public static final String APP_PACKAGE = 
            "io.hilo.example.demo";
    
    public static void main(String[] args) {
        SpringApplication.run(AppStarter.class);
    }

}
